<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-07-12 11:48:18
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-07-14 12:15:35
-->
<template>
  <div>
    <div @click="toGet">这是测试页面</div>
    <Test />
  </div>
</template>
<script>
import { get } from "../utils/request";
import Test from "./components/Test.vue";
export default {
  data() {
    return {
      article: "",
    };
  },
  components: {
    Test,
  },
  methods: {
    toGet() {
      this.$bus.$on("article", article);
      this.article = article;
      console.log(article);
    },
  },
};
</script>
<style>
.a1 {
  background-color: red;
}
</style>
